<template>
	<!-- 1. 通过 v-on:event="handle" 或者@event="handleEvent" -->
	<view class="search" @click="goToSC">
		<view class="content">
			搜索
		</view>
	</view>
</template>

<script>
	export default {
		name: "search",
		data() {
			return {

			};
		},
		methods: {
			/* 2. 定义一个处理函数 */
			goToSC: function() {
				/* 3. 跳转页面  pages/search/search*/
				// https://uniapp.dcloud.io/api/router?id=navigateto
				// console.log("123");
				uni.navigateTo({
					url: "/pages/search/search"
				})

			}
		}
	}
</script>

<style lang="scss" scoped>
	.search {
		height: 100rpx;
		width: 750rpx;
		background-color: #ea4350;
		display: flex;
		align-items: center;
		justify-content: center;

		.content {
			width: 700rpx;
			height: 80rpx;
			border-radius: 5px;
			background-color: white;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #767676;
		}
	}
</style>